﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Akso.Infrastructure.Data.Annotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Akso.ViewEntities
{
    [Table("View_Courses")]
    public class ViewCourse: Entity
    {
        public const int MaxCourseNameLength = 50;
        public const int MaxCodeNameLength = 50;

        public Guid CourseId { get; set; }
        [MaxLength(MaxCourseNameLength)]
        public string CourseName { get; set; }
        [DecimalPrecision(10,2)]
        public decimal Price { get; set; }
        [MaxLength(MaxCodeNameLength)]
        public string CodeName { get; set; }
    }
}
